package com.huike.web.controller.index;

import com.huike.business.domain.TbBusiness;
import com.huike.common.core.domain.AjaxResult;
import com.huike.report.service.IReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * 首页Controller
 * @date 2021-04-25
 */
@RestController
@RequestMapping("/index")
public class indexCountController {

    @Autowired
    private IReportService reportService;

     @GetMapping("/businessChangeStatistics")
     public AjaxResult businessChangeStatistics(String beginCreateTime,String endCreateTime){
         return reportService.businessChangeStatistics(beginCreateTime,endCreateTime);
     }

    /**
     * 今日简报数据
     */
    @GetMapping("/getTodayinfo")
    public AjaxResult list(TbBusiness tbBusiness, HttpServletRequest req){
        return AjaxResult.success();
    }
}
